import { BaseService, IStorage } from './base';
import Category from '../model/category.model';
import { StorageFactory } from './storage';
import { Service } from 'ts-express-restful';

@Service()
export class CategoryService extends BaseService<Category> { 

    constructor() { 
        const storage = StorageFactory.getDefault<Category>('category');;
        super(storage, Category);
    }
}